<?php
session_start();

require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/config/config.php');


$nip = $_SESSION['NIP'];
//baca tabel biodata
$query=mysql_query("SELECT b.NIP as NIP, b.NAMA as NAMA, b.GENDER as GENDER, b.DOB as DOB, b.POB as POB, b.HEIGHT as HEIGHT, b.WEIGHT as WEIGHT, b.AGAMA as AGAMA, b.ALAMAT as ALAMAT,
						b.KOTA as KOTA, b.TELEPON as TELEPON, b.HANDPHONE as HANDPHONE, s.NAMA_STATUS as NAMA_STATUS, b.TANGGAL_MASUK as TANGGAL_MASUK, b.TANGGAL_TETAP as TANGGAL_TETAP,
					 b.PASSWORD_PEGAWAI FROM biodata as b, status as s where b.ID_STATUS = s.ID_STATUS and b.NIP =".$nip);  

	while($row = mysql_fetch_array($query)){
		
		$temp = array(
			'nip' => $nip,
			'nama' => $row['NAMA'],
			'gender' => $row['GENDER'],
			'dob' => $row['DOB'],
			'pob' => $row['POB'],
			'height' => $row['HEIGHT'],
			'weight' => $row['WEIGHT'],
			'agama' => $row['AGAMA'],
			'alamat' => $row['ALAMAT'],
			'kota' => $row['KOTA'],
			'telepon' => $row['TELEPON'],
			'handphone' => $row['HANDPHONE'],
			'status' => $row['NAMA_STATUS'],
			'tanggal_masuk' => $row['TANGGAL_MASUK'],
			'tanggal_tetap' => $row['TANGGAL_TETAP'],
			'password' => $row['PASSWORD_PEGAWAI']
			
			
		);
		}
		?>